<?php
namespace common\modules\user\models\query;

/**
 * This is the ActiveQuery class for [[\common\modules\user\models\UserGroup]].
 *
 * @see \common\modules\user\models\UserGroup
 */
class UserGroupQuery extends \yii\db\ActiveQuery
{

    /**
     * @inheritdoc
     *
     * @return \common\modules\user\models\UserGroup[]|array
     */
    public function all($db = null)
    {
        return parent::all($db);
    }

    /**
     * @inheritdoc
     *
     * @return \common\modules\user\models\UserGroup|array|null
     */
    public function one($db = null)
    {
        return parent::one($db);
    }

    public function recommend()
    {
        $this->andWhere(['recommend' => 1]);
        return $this;
    }
}